Bypassing administrator only statements

Hello,

I would like to bypass a DOORS feature when playing with the history of a record (in my case a link):

"targetInitialName" the name of the target module at the time of link creation (only
available to the Administrator.

Is there anyway I can display the hsitory of the link module and Taeget Module for all users that will use my modified view history GUI?

Thanks again,
PatrickGuay - Tue Feb 21 07:16:18 EST 2012

Re: Bypassing administrator only statements
llandale - Tue Feb 21 14:06:22 EST 2012

Does this help?

bool    IamAdmin()
{     User usr = find()
        UserClass uc = usr.class
        return(uc == administrator)
}
 
string  GetTargetName(History hst)
{     string TargetName
        if (IamAdmin()) //
        then TargetName = hst.targetInitialName
        else TargetName = "unavailable"
        return(TargetName)
}